package com.mlog.njyjy.ndop.msg.relay.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * <p>
 *  redis缓存消息事件
 * </p>
 *
 * @author zyz
 * @version v1.0, 2020/8/6
 */
public class MsgEvent extends ApplicationEvent {

    @Getter
    private String key;

    @Getter
    private String value;

    public MsgEvent(String key, String value) {
        super(key);
        this.key = key;
        this.value = value;
    }
}
